import 'package:flutter/material.dart';
import 'package:flutter_easyloading/flutter_easyloading.dart';
import 'package:get/get.dart';
import 'package:smart_home/router/index.dart';
import 'package:smart_home/style.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      theme: ThemeData(primaryColor: themeColor),
      debugShowCheckedModeBanner: false,
      title: '房至尊',
      defaultTransition: Transition.fade,
      initialRoute: INITPAGE,
      getPages: getPages,
      builder: EasyLoading.init(),
    );
  }
}
